var platform;
(function (platform) {
    (function (navigation) {
        var SearchSuggestion = (function () {
            function SearchSuggestion() { }
            return SearchSuggestion;
        })();
        navigation.SearchSuggestion = SearchSuggestion;        
        var SearcherViewModel = (function () {
            function SearcherViewModel() {
                this.query = ko.observable('');
                this.suggestions = ko.observableArray();
            }
            SearcherViewModel.prototype.getSomeSuggestions = function () {
                var self = this;
                var url = $.url.build({
                    path: '/search/suggestions',
                    params: {
                        query: self.query()
                    }
                });
                $.getJSON(url, function (data) {
                });
            };
            SearcherViewModel.prototype.goAndSearch = function () {
            };
            return SearcherViewModel;
        })();
        navigation.SearcherViewModel = SearcherViewModel;        
    })(platform.navigation || (platform.navigation = {}));
    var navigation = platform.navigation;

})(platform || (platform = {}));

ko.applyBindings(new platform.navigation.SearcherViewModel(), $('.searcher').get(0));
